package com.codefarmer.redisdemo.test;

import com.codefarmer.redisdemo.utile.RedisUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author codefarmer_z
 * @Date 2022/4/10 15:48
 * @Version 1.0
 */
@RequestMapping("/redis")
@RestController
public class testController {

    @Autowired
    private RedisUtils redisUtils;
    @RequestMapping("/")
    public String getRedis() {
        redisUtils.set("test","我是测试");
        return "redis 获取成功!";
    }

}
